package com.sl.au.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.transaction.annotation.Transactional;

import com.sl.au.entity.AfterSaleTicketBack;

public interface AfterSaleTicketBackRepository extends JpaRepository<AfterSaleTicketBack,String> {

	    //删除与售后服务单相关的现场产品质量信息反馈
		@Transactional
		@Modifying  
		@Query("delete from AfterSaleTicketBack a where a.afterSaleTicket.id=?1 ")
		public void deleteBack(String id);
}
